package com.nl.util;

import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test {

	public static void main(String[] args) {
		String endDate="20200526140000";
		//endDate = endDate.substring(0, 8);
		String endTime=endDate.substring(8);
		String everyDayStartTime= "10:52:00";
		//System.out.println(endDate);
		SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm:ss");
		SimpleDateFormat sdf3= new SimpleDateFormat("yyyyMMddHHmmss");
		//SimpleDateFormat sdf3 = new SimpleDateFormat("hh24miss");
		
		String now=sdf3.format(new Date());
		String nowTime=sdf2.format(new Date());
		System.out.println(nowTime);
		if(nowTime.compareTo(everyDayStartTime)>0){
			System.out.println("99939");
		}
		
		try {
			Date endTime2=sdf3.parse(endDate);
			endDate=sdf1.format(endTime2);
			endTime=endDate.substring(11);
			if(endTime.compareTo(everyDayStartTime)>0){
				System.out.println("555555");
			}
			System.out.println("-----------"+endTime);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		String nowDate= now.substring(0,8);
		
		if(nowDate.equals(endDate)){
			System.out.println("1111");
		}
		
		
		
		
		
			

		
		

	}

}
